
import './App.css';

import React,{Suspense} from 'react';

import {createHashRouter,RouterProvider} from 'react-router-dom'


const Login=React.lazy(()=>import('./views/Login/login'))




const routes=[
    {
        path:'/',
        element:<Suspense fallback={<div>Loading...</div>}><Login/></Suspense>
    },
]
export default function App(){
    const routerData=createHashRouter(routes)
    return <RouterProvider router={routerData}></RouterProvider>
}

